package com.star.sync.elasticsearch.dao;

import com.star.sync.elasticsearch.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: zhoujunming
 * @Description: TODO
 * @date: 2023/1/10 16:48
 * @email: zhoujunming@bluemoon.com.cn
 */
@Repository
public interface UserDao {
    void insert(@Param("user") User user);

    List<User> searchName(@Param("name") String name);

    List<User> searchGtName(@Param("name") String name);

    public List<User> searchPageDB();

    public User searchDetailDB(Integer id);

    int searchCountDB();

    List<User> searchGroupDB();
}
